package com.lgx.common.entity;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 
 * @author acer
 *
 */
@Entity
@Table(name="TS_CITY_DICTONARY")
public class CityDictonary implements Serializable {

	private static final long serialVersionUID = -6605585514286034390L;

	@Id
	private String id;
	
	private String name;
	
	private String code;
	
	private String type;
	
	@ManyToOne
	@JoinColumn(name="parent")
	private CityDictonary parent;
	
	private String isDelete;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public CityDictonary getParent() {
		return parent;
	}

	public void setParent(CityDictonary parent) {
		this.parent = parent;
	}

	public String getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(String isDelete) {
		this.isDelete = isDelete;
	}
}
